home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / zkf102.zip / pchdat.txt < prev    next >
Text File  |  1995-01-04  |  3KB  |  60 lines

  1. This document explains zkpch.dat and the background fast-initialization
  2. process.
  3.  
  4. A C++ interpreter has to do a lot of initialization of internal tables,
  5. etc., before it can start working.  But an interpreter should start
  6. immediately when you invoke it from the operating system command line.
  7. To make zk start immediately, the initialization is done by the
  8. background process, which keeps the initialization data handy, such
  9. that zk can access it via shared memory.  The data comes from zkpch.dat.
  10.  
  11. When you use header files for your c++ code, you can input them any
  12. time by using #include, but for maximum convenience it's usually
  13. better to have the header files you use most often precompiled into
  14. zkpch.dat.  You need the pro version of zk to precompile header files.
  15. The first step is to edit newpch.ini to add your header files to it,
  16. then run newpch.bat by typing "newpch" at the operating system command
  17. line.
  18.  
  19. Also, if you build a new version of zk.exe (see link.txt for details)
  20. you have to build a new version of zkpch.dat, using newpch.bat as
  21. mentioned above, because the old version of zkpch.dat will not be
  22. compatible with your new version of zk.exe, and will probably cause
  23. various messy bug symptoms if you try to use the old version of one with
  24. the new version of the other.  Be sure you archive and delete or rename
  25. the old version of zk.exe before you run newpch.bat in this situation,
  26. to be sure it isn't somehow using the old version instead of the new.
  27.  
  28. The background fast-initialization process stays up till you log out.
  29. If it gets in your way for any reason, you can get rid of it by using
  30. killzkmd.bat, which you invoke by typing "killzkmd" at the NT command
  31. line.  Then, to start it again, just run zk again, which will start it
  32. when it notices that it's gone.  You can inquire whether the background
  33. process is up by using zkmdup.bat, which you invoke by typing "zkmdup"
  34. at the operating system command line, and it will give you a simple
  35. "up" or "down" answer.
  36.  
  37. Normally there won't ever be a reason to use killzkmd, because the
  38. background process will normally not get in your way, and in fact you
  39. probably won't even notice it, except when you see zk start it.  It
  40. does use space in your pagefile, and if that turns out to be a problem,
  41. you should increase the size of your pagefile, and/or set zkmb=9
  42. or some other number.  Whether you should increase or decrease zkmb,
  43. or not set it at all, depends on the situation.  Normally you should
  44. not set zkmb at all, and if you run out of memory, you should normally
  45. just increase the size of your pagefile, by going to the program
  46. manager --> control panel --> system --> virtual memory.  But if you
  47. do set zkmb, you have to use killzkmd.bat (mentioned above) to make
  48. the new number take effect.
  49.  
  50. Also, if you don't have much RAM, you should add more.  NT is a very
  51. RAM intensive operating system, and the amounts recommended are not
  52. really enough for the best performance.  Zk should always feel
  53. responsive and should not take more than a fraction of a second to
  54. start.  If it does, shortage of RAM is the most likely cause.  But
  55. don't confuse RAM with virtual memory.  Virtual memory is determined
  56. by the size of your pagefile, and is what can cause error messages
  57. by not having enough.  RAM causes sluggishness when you don't have
  58. enough, but doesn't normally cause error messages.
  59.  
  60.